package com.iyundao.io.mapper;

import static org.apache.ibatis.jdbc.SqlBuilder.BEGIN;
import static org.apache.ibatis.jdbc.SqlBuilder.INSERT_INTO;
import static org.apache.ibatis.jdbc.SqlBuilder.SQL;
import static org.apache.ibatis.jdbc.SqlBuilder.VALUES;

import com.iyundao.io.model.UserDept;

public class UserDeptSqlProvider {

    public String insertSelective(UserDept record) {
        BEGIN();
        INSERT_INTO("user_dept");
        
        if (record.getUid() != null) {
            VALUES("uid", "#{uid,jdbcType=CHAR}");
        }
        
        if (record.getDid() != null) {
            VALUES("did", "#{did,jdbcType=CHAR}");
        }
        
        return SQL();
    }
}